Klasse ArrayPdfSource

java.lang.Object
com.inet.pdfc.config.PdfSource
com.inet.pdfc.config.ArrayPdfSource
Alle implementierten Schnittstellen:
Serializable, Comparable<PdfSource>

@JsonData public class ArrayPdfSource extends PdfSource
This is a PdfSource which is solely based on in-memory data.
Siehe auch:
  • Konstruktordetails

    • ArrayPdfSource

      public ArrayPdfSource(String name, long lastModified, byte[] content)
      Creates the PdfSource for in-memory data.
      Parameter:
      name - the name of the PDF, commonly the file name the PDF was read from, must not be null
      lastModified - the last modified timestamp of the PDF data; this time stamp is only relevant for the result export, it's not used in the comparison
      content - the actual raw content of the PDF, must not be null
      Löst aus:
      IllegalArgumentException - in case the name or the content is null
      Seit:
      3.0
  • Methodendetails

    • getSize

      public long getSize()
      Returns the size of the raw data in bytes
      Setzt außer Kraft:
      getSize in Klasse PdfSource
      Gibt zurück:
      the size of the raw data in bytes
    • getRawContent

      public byte[] getRawContent()
      Returns the binary content of this PdfSource
      Gibt zurück:
      the binary content of this PdfSource
      Seit:
      3.0
    • getContent

      public com.inet.persistence.RandomAccessRead getContent() throws IOException
      Returns the readable content of this document source
      Angegeben von:
      getContent in Klasse PdfSource
      Gibt zurück:
      the readable content of this document source
      Löst aus:
      IOException - thrown in case the source data cannot be accessed or does not exist